<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
/**
 * @version		2.1.0     
 * @package     Frontend Register
 * @copyright   Copyright (c) 2012 CodeIgniter
 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @author		btchinh2906@gmail.com
 */

class Register extends CI_Controller
{
	function __construct()
	{
		parent::__construct();
		#Check setting
		#BEGIN: CHECK LOGIN
		if($this->check->is_logined($this->session->userdata('sessionUser'), $this->session->userdata('sessionGroup'), 'home'))
		{
			redirect(base_url(), 'location');
			die();
		}
		#END CHECK LOGIN

	}
	public function index()
	{
		echo '__construct';
	}
}